import request from '@/utils/request'

export function loadDataUrl() {
  return 'v1/cpyMng/loadData'
}

export function viewMainData(data) {
  return request({
    url: 'v1/cpyMng/toView',
    method: 'post',
    data
  })
}

export function getAllCpy() {
  return request({
    url: 'v1/cpyMng/getAllCpy',
    method: 'get'
  })
}

export function addOrEdit(data) {
  return request({
    url: 'v1/cpyMng/doSave',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: 'v1/cpyMng/doDelete',
    method: 'post',
    data
  })
}

